<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>展示技术的一句话</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow: hidden;
        }
        
        .container {
            text-align: center;
            padding: 2rem;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        }
        
        .floating-text {
            font-size: 5rem;
            font-weight: 700;
            color: #fff;
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            animation: floating 8s ease-in-out infinite;
            padding: 1rem;
        }
        
        .subtitle {
            margin-top: 2rem;
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.2rem;
            font-weight: 300;
        }
        
        @keyframes floating {
            0%, 100% {
                transform: translateY(0) rotate(0.5deg);
                text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            }
            25% {
                transform: translateY(-15px) rotate(-0.5deg);
                text-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
            }
            50% {
                transform: translateY(5px) rotate(0.5deg);
                text-shadow: 0 15px 25px rgba(0, 0, 0, 0.7);
            }
            75% {
                transform: translateY(-10px) rotate(-0.5deg);
                text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
            }
        }
        
        .controls {
            margin-top: 2rem;
            display: flex;
            justify-content: center;
            gap: 1rem;
        }
        
        button {
            padding: 0.7rem 1.5rem;
            border: none;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }
        
        @media (max-width: 768px) {
            .floating-text {
                font-size: 3rem;
            }
            
            .container {
                margin: 0 1rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="floating-text">Hello World!</h1>
        <p class="subtitle">😍这一句话可以打动你的心吗😍</p>
        
        <div class="controls">
            <button id="pauseBtn">宋</button>
            <button id="speedDownBtn">政</button>
            <button id="speedUpBtn">宏</button>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const textElement = document.querySelector('.floating-text');
            const pauseBtn = document.getElementById('pauseBtn');
            const speedDownBtn = document.getElementById('speedDownBtn');
            const speedUpBtn = document.getElementById('speedUpBtn');
            
            let animationSpeed = 8;
            let isPaused = false;
            
            // 暂停/继续动画
            pauseBtn.addEventListener('click', function() {
                if (isPaused) {
                    textElement.style.animationPlayState = 'running';
                    pauseBtn.textContent = '宋';
                } else {
                    textElement.style.animationPlayState = 'paused';
                    pauseBtn.textContent = '宋';
                }
                isPaused = !isPaused;
            });
            
            // 减慢速度
            speedDownBtn.addEventListener('click', function() {
                if (animationSpeed < 15) {
                    animationSpeed += 1;
                    updateAnimationSpeed();
                }
            });
            
            // 加快速度
            speedUpBtn.addEventListener('click', function() {
                if (animationSpeed > 3) {
                    animationSpeed -= 1;
                    updateAnimationSpeed();
                }
            });
            
            // 更新动画速度
            function updateAnimationSpeed() {
                textElement.style.animationDuration = `${animationSpeed}s`;
            }
        });
    </script>
</body>
</html>